﻿<?php
include_once('common/header.php');
$strQ       = $objRequest->getParam('q', '');
$intPage    = $objRequest->getParam('page', 1);
$intLimit   = $variable['SEARCH_LIMIT']['val'];
$intOffset  = ($intPage-1)*$intLimit;
$intTotal   = 0;
$objSearch  = new Ecore_Search();
$arrResult  = $objSearch->getAll($intOffset,$intLimit,2,0,0,'',$strQ,$intTotal);
$this->view->strQ       = $strQ;
$this->view->intOffset  = $intOffset;
$this->view->intLimit   = $intLimit;
$this->view->intTotal   = $intTotal;
$this->view->searchs    = $arrResult;